"use strict";
var User = /** @class */ (function () {
    function User(name, age) {
        if (name === void 0) { name = "clearlove"; }
        if (age === void 0) { age = 23; }
        console.log("User的构造函数");
        this.name = name;
        this.age = age;
    }
    User.prototype.showMsg = function () {
        console.log("name:" + this.name + ";age:" + this.age);
    };
    return User;
}());
var u1 = new User();
console.log(u1.name, u1.age);
u1.showMsg();
var u2 = new User("iboy", 20);
console.log(u2.name, u2.age);
u2.showMsg();
